Kanzi 4.0.0-beta2
kanzi::gfx::ShaderCreateInfo Struct Reference

Creation information for a shader. More...

#include <kanzi/gfx/create_info.hpp>

Inheritance diagram for kanzi::gfx::ShaderCreateInfo:
[legend]

Public Types

using HandleType
 Shader handle.
 

Public Attributes

vector< byte > blob
 The contents of the shader. For Vulkan, this is SPIR-V code, for OpenGL it is GLSL code.
 
ShaderStage stage
 The shader stage for this shader.
 
- Public Attributes inherited from kanzi::gfx::BaseCreateInfo
string_view name
 The name of the graphics object, useful for debugging.
 

Detailed Description

Creation information for a shader.

Each shader represents a stage of execution on the GPU.

Since
Kanzi 4.0.0

Member Typedef Documentation

◆ HandleType

Member Data Documentation

◆ stage

ShaderStage kanzi::gfx::ShaderCreateInfo::stage

The shader stage for this shader.

◆ blob

vector<byte> kanzi::gfx::ShaderCreateInfo::blob

The contents of the shader. For Vulkan, this is SPIR-V code, for OpenGL it is GLSL code.


The documentation for this struct was generated from the following file: